<div id="content">
        <ul class="tab-hd clearfix">
            <li class="active"><a href="<?=Util_JxUrls::grade_url('ShowMyDepartment')?>">直属部门</a></li>
           <li ><a href="<?=Util_JxUrls::grade_url('VirtualDepartment')?>">虚线部门</a></li>
           <li ><a href="<?=Util_JxUrls::grade_url('ShowGrade')?>">总271分布</a></li>
           <li class="noborder"><a href="<?=Util_JxUrls::grade_url('ShowComplete')?>">考评完成度 </a></li>
        </ul>

        <?php if(!empty($datalist)):?>
         <table class="table01" width="957" border="1" cellpadding="0" cellspacing="0" rules="rows" id='tableinfos'>
            <thead>
                <tr>
                    <td width="87">团队</td>
                    <td width="105">A(3.8-5.0)</td>
                    <td width="105">B(2.5-3.7)</td>
                    <td width="105">C(0-2.4)</td>
                    <td width="107">271提交者</td>
                    <td width="125">操作</td>
                </tr>
            </thead>
            <tbody>
                <?php foreach($datalist as $k=>$abc_list):?>
                <?php
                $p = array('user_id'=>$abc_list['user_id']);
                if($k=='under'){
                $p['is_lower']=1;
                }
                ?>
                   <tr>
                   <td><a class="blue" href="<?=Util_JxUrls::grade_url('ShowViewDepartment',$p)?>" ><?=$abc_list['name']?>团队</a></td>
                   <td><?=empty($abc_list['A']) ? 0 : $abc_list['A']?> (<?php if($abc_list['A']):?><?=floor(($abc_list['A']/$abc_list['max_users'])*10000)/10000*100?><?php else:?>0<?php endif;?>%)</td>
                    <td><?=empty($abc_list['B']) ? 0 : $abc_list['B']?> (<?php if($abc_list['B']):?><?=floor(($abc_list['B']/$abc_list['max_users'])*10000)/10000*100?><?php else:?>0<?php endif;?>%)</td>
                    <td><?=empty($abc_list['C']) ? 0 : $abc_list['C']?> (<?php if($abc_list['C']):?><?=floor(($abc_list['C']/$abc_list['max_users'])*10000)/10000*100?><?php else:?>0<?php endif;?>%)</td>
                   <td><?=$user_name?></td>
                   <td><?php if($abc_list['status']==60):?>通知他调整<?php else:?><?php endif;?><a href="#" onclick="DepartMentSnd(6872)" class="blue">提交</a></td>
                   </tr>
                <?php endforeach;?>
            </tbody>
        </table>
        <?php else:?>

        <table class="table01" width="957" border="1" cellpadding="0" cellspacing="0" rules="rows" id='tableinfos'>
                             <thead>
                            <tr>
                                 <td width="87">员工姓名</td>
                                 <td width="97">最终得分</td>
                                 <td width="107">271提交者</td>
                                 <td width="145">操作</td>
                            </tr>
                        </thead>
                        <tbody>
                        <?php if($lower_team):?>
                        <?php foreach($lower_team as $k=>$val):?>
                           <tr>
                               <td><?=$val['name']?></td>
                                       <td><?php if(!$val['is_no_kp']):?><?=$val['score']?><?php else:?>免考<?php endif;?></td>
                                       <td><?=$user_name?></td>
                               <td>
                                <a href="<?=Util_JxUrls::plan_url('view',array('user_id'=>$val['userId']))?>" class="blue" target="_blank">考评明细</a>&nbsp;&nbsp;
                                <a href="<?=Util_JxUrls::plan_url('interview',array('user_id'=>$val['userId']))?>" class="blue" onclick="showInterView(4905,20130103)" target="_blank">面谈明细</a>
                               </td>
                       </tr>
                       <?php endforeach;?>
                       <?php endif;?>
            </tbody>
        </table>
        <?php endif;?>
          <div class="btn-box"><input class="input-btn back-btn" type="text" onclick="history.back();" value="返回"></div>
    </div>
 <?php $this->script_block_begin(); ?>
    <script type="text/javascript">
    $(function(){
          $('#depart_271').addClass("tab-on");
    });
    </script>

<?php $this->script_block_end(); ?>
